import request from '@/utils/request'

// 查询库存流水查询列表
export function listInventoryJournal(query) {
  return request({
    url: '/wareManagement/inventoryJournal/list',
    method: 'get',
    params: query
  })
}

// 查询库存流水查询详细
export function getInventoryJournal(journalId) {
  return request({
    url: '/wareManagement/inventoryJournal/' + journalId,
    method: 'get'
  })
}

// 新增库存流水查询
export function addInventoryJournal(data) {
  return request({
    url: '/wareManagement/inventoryJournal',
    method: 'post',
    data: data
  })
}

// 修改库存流水查询
export function updateInventoryJournal(data) {
  return request({
    url: '/wareManagement/inventoryJournal',
    method: 'put',
    data: data
  })
}

// 删除库存流水查询
export function delInventoryJournal(journalId) {
  return request({
    url: '/wareManagement/inventoryJournal/' + journalId,
    method: 'delete'
  })
}
